package cmo.neutech.day14;

public class Student {

    private int no;
    private String name;
    private int age;
    private double height;
    private String sex;
    public int getNo(){
        return no;
    }
    public void setNo(int no){
        this.no = no;
    }
    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }

    public int getAge(){
      return age;
    }
    public void setAge(int age){
        this.age = age;
    }

    public double getHeight(){
       return  height;
    }
    public void setHeight(double height){
        this.height = height;
    }
    public String getSex(){
        return sex;
    }
    public void setSex(String sex){
        this.sex = sex;
    }
   public Student() {

    }

    public Student(int no, String name, int age, double height, String sex) {
        this.no = no;
        this.name = name;
        this.age = age;
        this.height = height;
        this.sex = sex;
    }

    public String format(){
       return (no+","+name+","+age+","+height+","+sex+"\n");
    }
    @Override
    public  String toString() {
        return "Student{" +
                "no=" + no +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", height=" + height +
                ", sex='" + sex + '\'' +
                '}';
    }
}
